import { MOUNTED, MOUNTING, NOT_MOUNTED } from "../applications/app.helpers.js";
export async function toMountPromise(app) {
    // 应用不是待挂载状态，啥也不做
    if (app.status !== NOT_MOUNTED) {
        return app;
    }
    app.status = MOUNTING;

    await app.mount(app.customProps); // 调用mount钩子

    app.status = MOUNTED;

    return app;
}